package huawei;

import java.util.Scanner;

public class Main3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        double alpha = in.nextDouble();
        double cosAlpha = Math.cos(alpha / 180 * Math.PI);

        double dis = 160 / (3 + 5 * cosAlpha);

        double y = dis * Math.sin(alpha / 180 * Math.PI);

        double x = -50 + dis * cosAlpha;

        System.out.printf("(%.4f,%.4f)",x,y);

        in.close();
    }

}